package com.example.mymedi;

import androidx.appcompat.app.AppCompatActivity;

import android.content.ContentValues;
import android.graphics.Bitmap;
import android.net.Uri;
import android.os.Bundle;
import android.provider.MediaStore;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);





    }



    public void show()
    {
        ContentValues cv=new ContentValues();
        ///添加图片相关描述信息
        cv.put(MediaStore.Images.Media.DISPLAY_NAME,"FLOWER");
        //得到conturi2
        Uri ul=getContentResolver().insert(MediaStore.Images.Media.EXTERNAL_CONTENT_URI,cv);
        //Bitmap

    }
}
